<!--Start: Dang quan tam-->
<?php
    $currentWedding = $this->currentWedding;
    
    $banner= EVENT_STATIC_SERVER.'/images/nophoto.gif';
    if ($currentWedding->banner!="")
        $banner=EVENT_IMG_URL_PATH.'/'.$currentWedding->banner;
?>

            <div class="boxed">
                <div class="boxTop">
                    <div class="boxTopLeft">
                        <div class="boxTopRight">
                            <div class="boxName"><img src="<?php echo EVENT_STATIC_SERVER;?>/images/icons/icon_myWedding.jpg" alt="myWedding" width="23" height="23" /><span>Đáng&nbsp;quan&nbsp;tâm</span></div>
                        </div>
                    </div>
                </div>
                <div class="boxBody">
                    <div style="padding:20px 0 0px 30px;">
                        <div class="itemWedding float-left">
                            <div class="wrapEventNew01" style="margin:0px 30px 10px 0px; width: 302px; float:left;">
                                <div class="wrapEventNew02">
                                    <a href="/event/<?php echo $currentWedding->short_cut;?>">
                                        <img src="<?php echo $banner;?>" onload="resizeImage(this,300, 200)" alt="damCuoi01" />
                                    </a>
                                </div>
                            </div> 
                            <a href="/event/<?php echo $currentWedding->short_cut;?>" class="link"><?php echo check_plain($currentWedding->event_name);?></a>
                            <div class="desc">
                                <span>Thời gian:</span> Từ <?php echo date("h:i' a", $currentWedding->start_time);?> ngày <?php echo date("d/m/y", $currentWedding->start_time);?> <br />
                                tới <?php echo date("h:i' a", $currentWedding->end_time);?> ngày <?php echo date("d/m/y", $currentWedding->end_time);?><br />
                                <span>Địa điểm:</span> Việt Nam
                            </div>
                        </div>
                        <div class="itemWeddingList">
                        <?php
                            for($i=0; $i<4 && count($this->currentWeddingPhotos)>0;$i++){
                                $album = $this->currentWeddingPhotos[$i];
                                $thumbnail= EVENT_STATIC_SERVER.'/images/nophoto.gif';
                                if ($album->thumbnail!="")
                                    $thumbnail=$album->thumbnail;
                        ?>
                            <div class="wrapEventNew01" style="margin:0px 30px 10px 0px; width: 152px; float:left;">
                                <div class="wrapEventNew02">
                                    <a href="http://photo.tamtay.vn/photo/view/<?php echo $album->aid;?>">
                                        <img src="<?php echo $thumbnail;?>"  onload="resizeImage(this,150, 100)" alt="<?php echo check_plain($album->album_name);?>" />
                                    </a>
                                </div>
                            </div>
                        <?php
                            }
                        ?>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="boxBottom"><span><b></b></span></div>
            </div>
            <!--End: Dang quan tam-->
            <!--Start: dam cuoi cua toi-->
            <div class="boxed">
                <div class="boxTop">
                    <div class="boxTopLeft">
                        <div class="boxTopRight">
                            <div class="boxName"><img src="<?php echo EVENT_STATIC_SERVER;?>/images/icons/icon_myWedding.jpg" alt="myWedding" width="23" height="23" /><span>Đám cưới của tôi</span></div>
                        </div>
                    </div>
                </div>
                <div class="boxBody" style="padding:20px 50px 15px 30px;">
                    <?php
                        $idx = 1;
                        for($i=0; $i<count($this->weddingList); $i++){
                            $wedding = $this->weddingList[$i];
                            $event = $wedding['event'];
                            $vote_info = $wedding['vote_info'];
                            $banner= EVENT_STATIC_SERVER.'/images/nophoto.gif';
                            if ($event->banner!="")
                                $banner= EVENT_IMG_URL_PATH.'/'.$event->banner;
                            if(is_array($vote_info) && count($vote_info) >0){
                                foreach($vote_info as $thid=>$thread){
                                    if(is_array($thread) && count($thread) >0){
                                        foreach($thread as $pid=>$phase){
                    ?>
                    
                        <div class="itemWedding float-<?php echo ($idx%2==1?'left':'right'); ?>">
                            <div class="wrapEventNew01" style="width: 302px; float:left;">
                                <div class="wrapEventNew02"> 
                                    <a href="/event/<?php echo $event->short_cut;?>/votedlist/<?php echo $thid."/".$pid;?>"><img class="image" src="<?php echo $banner;?>" alt="<?php echo check_plain($event->event_name) ?>"  onload="resizeImage(this,300, 100)" /></a>
                                </div>
                            </div>
                            <a href="/event/<?php echo $event->short_cut;?>/votedlist/<?php echo $thid."/".$pid;?>" class="link"><?php echo check_plain($event->event_name) ?><br />
                                <?php echo $phase->thread_name.($phase->phase_name!=''?' - '.$phase->phase_name:'');?>
                            </a>
                            <div class="desc">
                                <span>Thời gian:</span> Từ <?php echo date("h:i' a", $phase->vote_start_time);?> ngày <?php echo date("d/m/y", $phase->vote_start_time);?> <br />
                                tới <?php echo date("h:i' a", $phase->vote_end_time);?> ngày <?php echo date("d/m/y", $phase->vote_end_time);?><br />
                            </div>
                        </div>
                        <?php
                            if($idx%2==0){
                                echo '<div class="clearThis"></div>';
                            }
                        ?>
                    <?php
                                            $idx++;
                                        }
                                    }
                                }
                            }
                        }
                    ?>
                        <div class="clearThis"></div>
                </div>
                <div class="boxBottom"><span><b></b></span></div>
            </div>
            <!--End: dam cuoi cua toi-->